<script setup lang="ts">
  import { useRouter, } from "vue-router"; //路由
  const router = useRouter(); // 路由

  function jump(url){
    router.push(url);
  }
</script>

<template>
  <div>
    <a-button @click="()=>{jump('/example/i18n')}">i18n</a-button>
    <a-button @click="()=>{jump('pinia')}">Pinia</a-button> 
    <a-button @click="()=>{jump('antd')}">Antd</a-button>
    <a-button @click="()=>{jump('/example/iconfont')}">iconfont</a-button>
    <router-view></router-view>
  </div>
</template>

<style scoped>

</style>
